#!/usr/bin/env bash
###!/bin/sh
#cd `dirname $0`
#获取软连接的真实路径
DIR=`S=\`readlink "$0"\`; [ -z "$S" ] && S=$0; dirname $S`
cd "$DIR"

echo `pwd`

today=`date +"%Y%m%d"`

ps axu|grep '/data/anaconda3/envs/ctx/bin/python gen_main.py'|grep -v grep
echo "to kill"
ps axu|grep '/data/anaconda3/envs/ctx/bin/python gen_main.py'|grep -v grep |awk '{print $2}'|xargs -i kill {}
echo "kill finish"
ps axu|grep '/data/anaconda3/envs/ctx/bin/python gen_main.py'|grep -v grep


